/*
 * Niiuzu
 * Copyright (C) 2011  Thierry Nowak
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.niiuzu.client.screen.authentification.login;

import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.HasValue;
import com.mvp4g.client.view.LazyView;
import com.niiuzu.client.util.view.PopupView;

/**
 * Interface de la connexion du formulaire de connexion de l'utilisateur.
 */
public interface LogInView extends LazyView, PopupView {

	/**
	 * Place le curseur sur le champ de l'adresse mail.
	 */
	void focusMailField();

	/**
	 * Gestion des clics sur le bouton de fermeture.
	 */
	HasClickHandlers getCloseButtonHasClickHandlers();

	/**
	 * Gestion des clics sur le lien annuler.
	 */
	HasClickHandlers getCancelHasClickHandlers();

	/**
	 * Gestion des clics sur le bouton de validation.
	 */
	HasClickHandlers getValidationHasClickHandlers();

	/**
	 * Gestion des clics sur le lien du mot de passe perdu.
	 */
	HasClickHandlers getLostPasswordHasClickHandlers();

	/**
	 * Champ de saisi de l'adresse mail de l'utilisateur.
	 */
	HasValue<String> getMailHasValue();

	/**
	 * Champ du mot de passe de l'utilisateur.
	 */
	HasValue<String> getPasswordHasValue();

	/**
	 * Champ contenant le choix de l'utilisateur concernant la connexion
	 * automatique au prochain passage.
	 */
	HasValue<Boolean> getRememberUserHasValue();

}
